package net.zjitc.security.auth;

import lombok.Data;
import org.springframework.security.access.ConfigAttribute;

import javax.servlet.http.HttpServletRequest;

@Data
public class MyConfigAttribute implements ConfigAttribute {
    private MyGrantedAuthority myGrantedAuthority;

    public MyConfigAttribute( MyGrantedAuthority myGrantedAuthority) {
        this.myGrantedAuthority = myGrantedAuthority;
    }

    @Override
    public String getAttribute() {
        return myGrantedAuthority.getAuthority();
    }
}
